package com.twu.biblioteca;

/**
 * Created by root on 4/24/14.
 */
public class Book {
    private String name;
    private String id;
    private String author;
    private String version;
    private String publisher;
    private boolean available;
    private Customer checkedoutCustomer;

    public Book(String name,String id,String author,String version,String publisher){
        this.name = name;
        this.id = id;
        this.author = author;
        this.version = version;
        this.publisher = publisher;
        this.available = true;
    }

    public void setCheckedoutCustomer(Customer checkedoutCustomer) {
        this.checkedoutCustomer = checkedoutCustomer;
    }

    public Customer getCheckedoutCustomer() {
        return checkedoutCustomer;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getAuthor() {
        return author;
    }

    public String getId() {
        return id;
    }

    public String getPublisher() {
        return publisher;
    }

    public String getVersion() {
        return version;
    }

    public void setAvailable(boolean available) {
        this.available = available;
    }

    public boolean isAvailable() {
        return available;
    }


}
